lighten the mood

Translations
разрядить обстановку
He told a joke to lighten the mood.
Он рассказал шутку, чтобы разрядить обстановку.
Definitions
To make a situation more cheerful or less serious, often by introducing humor or a positive attitude.